package com.youzhi.backend.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 系统权限表
 * </p>
 *
 * @author xumeng
 * @since 2022-11-18
 */
@Data
@ApiModel(value = "Privilege对象", description = "系统权限表")
public class Privilege implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("权限编码")
    private String code;

    @ApiModelProperty("权限名称")
    private String name;

    @ApiModelProperty(" 1：页面权限（指这个页面用户是否可见）2：按钮权限（指页面上的按钮用户是否有可操作权限）")
    private Integer privilegeType;

    @ApiModelProperty("权限路径")
    private String url;

    @ApiModelProperty("创建时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


    @ApiModelProperty("更新时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;


}
